/*
 * Copyright 2003-2005 (c) Live Media Pty Ltd. <argot@einet.com.au> 
 *
 * This software is licensed under the Argot Public License 
 * which may be found in the file LICENSE distributed 
 * with this software.
 *
 * More information about this license can be found at
 * http://www.einet.com.au/License
 * 
 * The Developer of this software is Live Media Pty Ltd,
 * PO Box 4591, Melbourne 3001, Australia.  The license is subject 
 * to the law of Victoria, Australia, and subject to exclusive 
 * jurisdiction of the Victorian courts.
 */

INLINE void swap2( unsigned char * buffer )
{
	register unsigned char b;
	
	b = buffer[0];
	buffer[0] = buffer[1];
	buffer[1] = b;
}

INLINE void swap4( unsigned char * buffer )
{
	register unsigned char b;
	
	b = buffer[0]; buffer[0] = buffer[3]; buffer[3] = b;
	b = buffer[1]; buffer[1] = buffer[2]; buffer[2] = b;
}

INLINE void swap8( unsigned char * buffer )
{
	register unsigned char b;
	
	b = buffer[0]; buffer[0] = buffer[7]; buffer[7] = b;
	b = buffer[1]; buffer[1] = buffer[6]; buffer[6] = b;
	b = buffer[2]; buffer[2] = buffer[5]; buffer[5] = b;
	b = buffer[3]; buffer[3] = buffer[4]; buffer[4] = b;
} 
